package top.infopub.mgr.bpa.service;


import com.github.pagehelper.Page;
import top.infopub.generic.GenericService;
import top.infopub.mgr.bpa.domain.InnerSuppleDomain;
import top.infopub.mgr.bpa.vo.InnerSuppleVo;
import top.infopub.mgr.common.vo.RspVo;
import top.infopub.model.bpa.BpaCompPlan;
import top.infopub.model.bpa.InnerAgrtSup;
import top.infopub.model.bpa.InnerListing;
import top.infopub.model.bpa.InnerSupple;
import top.infopub.model.mkt.ProjectAttachment;
import top.infopub.security.vo.AuthorizationVO;

import java.text.ParseException;
import java.util.List;


public interface InnerSuppleService extends GenericService<InnerSupple, String> {

    /**
     * 根据条件查询补充协议记录
     * @param innerSuppleVo
     * @return
     * @see
     */
    Page<InnerSuppleDomain> selectByDomainWhere(Page<InnerSuppleDomain> page, InnerSuppleVo innerSuppleVo) throws ParseException;


    RspVo selectProject();

    RspVo queryById(String id);

    RspVo saveAll(Integer submitType, AuthorizationVO userDtl, InnerSupple innerSupple, List<InnerListing> innerListings, InnerAgrtSup innerAgrtSup, List<BpaCompPlan> compPlan, List<ProjectAttachment> attachmentList,String bodyStr);

    InnerSupple selectBySguid(String id);
}
